/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package it.trick.admin.task;

import it.trick.admin.model.ChannelModel;
import it.trick.admin.service.ChannelService;
import java.util.List;
import javafx.concurrent.Service;
import javafx.concurrent.Task;

/**
 *
 * @author takahara
 */
public class LoadChannelListTask extends Service<List<ChannelModel>> {

    @Override
    protected Task createTask() {
        return new Task<List<ChannelModel>>() {
            @Override
            protected List<ChannelModel> call() throws Exception {

                return ChannelService.getList();
            }
        };
    }
}
